﻿#ifndef ADDITEM_H
#define ADDITEM_H

#include <common/baseeditor_dialog.h>
#include "m_fhs.h"

namespace Ui {
class AddItem;
}

class AddItem : public BaseEditorDialog
{
    Q_OBJECT

public:
    explicit AddItem(QWidget *parent = 0);
    ~AddItem();

    void generateMenu();
    void updateTarget();
    void updateCategory();
    void updateParts(const QString &category);
    void updateView(const QString &target);
    bool addItem(const QString &label, const QString &name,
                 int number,const QString &remark);
    void removeItem();

private slots:
    void on_category_currentTextChanged(const QString &text);

    void on_btn_submit_clicked();

private:
    Ui::AddItem *ui;
};

#endif // ADDITEM_H
